<div q-view="myview">
    <span q-text="{say}+{person.name}"></span>
    <button q-click="alert">click</button>
</div>

<script>
    qc.view("myview", function (vm, ve) {
        vm.say = "hello";
        vm.person = {
            name: "Andy"
        }
        ve.alert = function () {
            alert("hello");
        }
    })
</script>